package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.OrderNumBean;
import com.scsj.supermarket.bean.RefundOrderBean;
import com.scsj.supermarket.bean.SelectMyAdvertisingSpaceBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 买家版我的页面 on 2018/6/26.
 */

public class QueryOrderNumBase {
    public interface IView {

        void showSuccessMsg(String s, OrderNumBean orderNumBean);

        /**
         * App查询“我的”页面中广告位
         * @param s
         * @param bean
         */
        void showADSuccessMsg(String s, SelectMyAdvertisingSpaceBean bean);

        void showErrorMsg(String s);
    }

    public interface IPresenter {

        void deliverData();

        /**
         * App查询“我的”页面中广告位
         */
        void deliverADData(RequestBody requestBody);
    }

    public interface IModel {

        Subscription getData( ResponseCallback<OrderNumBean> callback);

        /**
         * App查询“我的”页面中广告位
         */
        Subscription getADData(RequestBody requestBody,ResponseCallback<SelectMyAdvertisingSpaceBean> callback);
    }
}
